projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8985ce3
)
__SIZEOF_INT__ and __SIZEOF_POINTER__ may not be defined.
author
Antoine Jacoutot
<ajacoutot@openbsd.org>
Mon, 3 Oct 2011 07:11:50 +0000
(09:11 +0200)
committer
Antoine Jacoutot
<ajacoutot@openbsd.org>
Mon, 3 Oct 2011 07:11:50 +0000
(09:11 +0200)
Protect __SIZEOF_INT__ and __SIZEOF_POINTER__ with an ifdef to prevent
warnings about them not being defined when including gtktextattributes.h.
https://bugzilla.gnome.org/show_bug.cgi?id=660619
gtk/gtktextattributes.h
patch
|
blob
|
history
diff --git
a/gtk/gtktextattributes.h
b/gtk/gtktextattributes.h
index 12c1af70637b7b7d8d3c9af481d5fda3356b81b5..d07a2eee57fb8aedf938993efe5edcace584f668 100644
(file)
--- a/
gtk/gtktextattributes.h
+++ b/
gtk/gtktextattributes.h
@@
-104,7
+104,7
@@
struct _GtkTextAppearance
GdkRGBA *rgba[2];
-#if
__SIZEOF_INT__ == __SIZEOF_POINTER__
+#if
(defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)) && (__SIZEOF_INT__ == __SIZEOF_POINTER__)
/* unusable, just for ABI compat */
guint padding[2];
#endif